package com.dd.cloud.user.service.chknowl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.user.entity.chknowl.ChknowlChVideo;
import com.dd.cloud.user.entity.chknowl.ChnowlChVideoCategory;
import com.dd.cloud.user.req.chknowl.ChkonwlVideoReq;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 书院课程表 服务类
 * </p>
 *
 * @author czg
 * @since 2023-10-12
 */
public interface IChknowlChVideoService extends IService<ChknowlChVideo> {

    /**
     * 我的课程
     * @param chkonwlVideoReq
     * @return
     */
    IPage<ChknowlChVideo> chknowlChVideoService(ChkonwlVideoReq chkonwlVideoReq);

    /**
     * 查询课程详情
     * @param id
     * @return
     */
    ChknowlChVideo queryVideoById(Integer id);

    /**
     * 导入课程信息
     * @param file
     */
    void importVideoBatch(MultipartFile file);

    /**
     * 添加课程视频路径
     * @param
     */
    void addBookUrlBatch(MultipartFile file);


    /**
     * 修改观看次数
     * @param videoId
     */
    void updateVideoNum(Integer videoId);

    /**
     * 导入批量图片
     * @param files
     */
    void importVideoImgBatch(MultipartFile[] files);


    /**
     * 查询视频分类
     * @return
     */
    List<ChnowlChVideoCategory> queryVideoCategoryList();

    /**
     * 导入视频总时长
     * @param file
     */
    void queryVideoTotalTime(MultipartFile file);
}
